﻿@model RealEstateApp.WebUI.Models.CustomerModel
@{
    ViewBag.Title = "Thêm mới khách hàng";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<div class="page-content">
    <div class="page-header position-relative">
        <h1>Thêm mới khách hàng			
        </h1>
    </div>
    <!--/.page-header-->

    <div class="row-fluid">
        <div class="span12">
            <!--PAGE CONTENT BEGINS-->
            @using (Html.BeginForm(null, null, FormMethod.Post, new { @class="form-horizontal" }))
            {
                @Html.ValidationSummary(true)
                <fieldset>
                    
                    <div class="control-group">
                        <div class="control-label">
                            @Html.LabelFor(model => model.Name)
                        </div>
                        <div class="controls">
                            @Html.EditorFor(model => model.Name)
                            @Html.ValidationMessageFor(model => model.Name)
                        </div>
                    </div>

                    <div class="control-group">
                        <div class="control-label">
                            @Html.LabelFor(model => model.BirthDate)
                        </div>
                        <div class="controls">
                            @Html.EditorFor(model => model.BirthDate)
                        </div>
                    </div>

                    @*<div class="editor-label">
                        @Html.LabelFor(model => model.SalesFID)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.SalesFID)
                        @Html.ValidationMessageFor(model => model.SalesFID)
                    </div>*@

                    <div class="control-group">
                        <div class="control-label">
                            @Html.LabelFor(model => model.Phone)
                        </div>
                        <div class="controls">
                            @Html.EditorFor(model => model.Phone)
                            @Html.ValidationMessageFor(model => model.Phone)
                        </div>
                    </div>

                    <div class="control-group">
                        <div class="control-label">
                            @Html.LabelFor(model => model.Mobile)
                        </div>
                        <div class="controls">
                            @Html.EditorFor(model => model.Mobile)
                            @Html.ValidationMessageFor(model => model.Mobile)
                        </div>
                    </div>

                    <div class="control-group">
                        <div class="control-label">
                            @Html.LabelFor(model => model.Fax)
                        </div>
                        <div class="controls">
                            @Html.EditorFor(model => model.Fax)
                            @Html.ValidationMessageFor(model => model.Fax)
                        </div>
                    </div>

                    <div class="control-group">
                        <div class="control-label">
                            @Html.LabelFor(model => model.Email)
                        </div>
                        <div class="controls">
                            @Html.EditorFor(model => model.Email)
                            @Html.ValidationMessageFor(model => model.Email)
                        </div>
                    </div>

                    <div class="control-group">
                        <div class="control-label">
                            @Html.LabelFor(model => model.Address)
                        </div>
                        <div class="controls">
                            @Html.EditorFor(model => model.Address)
                            @Html.ValidationMessageFor(model => model.Address)
                        </div>
                    </div>

                    <div class="form-actions">
						<button class="btn btn-info" type="submit">
							<i class="icon-ok bigger-110"></i>
							Lưu lại
						</button>
					</div>

                   
                </fieldset>
            }

        </div>
    </div>
</div>
